// console.log(require('cowsay').say({ text: "hi" }))

// const cliHtml = require('cli-html')

// const html = `
// <h1>Hello World</h1>
// `

// console.log(cliHtml(html));


// const Spinnies = require('spinnies');
// const spinnies = new Spinnies();

// spinnies.add('spinner-1', { text: 'I am a spinner' });
// spinnies.add('spinner-2', { text: 'I am another spinner' });

// setTimeout(() => {
//   spinnies.succeed('spinner-1', { text: 'Success!' });
//   spinnies.fail('spinner-2', { text: 'Fail :(' });
// }, 2000);


// var columnify = require('columnify')
// var data = {
//   "commander@0.6.1": 1,
//   "minimatch@0.2.14": 3,
//   "mkdirp@0.3.5": 2,
//   "sigmund@1.0.0": 3
// }

// console.log(columnify(data))

// var data = {
//   "commander@0.6.1": 1,
//   "minimatch@0.2.14": 3,
//   "mkdirp@0.3.5": 2,
//   "sigmund@1.0.0": 3
// }

// console.log(columnify(data, { columns: ['MODULE', 'COUNT'] }))

// const cliCursor = require('cli-cursor')

// cliCursor.hide();

// const unicornsAreAwesome = true;
// cliCursor.toggle(unicornsAreAwesome);

// const pc = require("picocolors")

// console.log(
//   pc.green(`How are ${pc.italic(`you`)} doing?`)
// )

//const boxen = require('boxen')

//console.log(boxen('unicorn', { padding: 1 }))


//const figures = require('figures')
//console.log(figures.tick)


//var qrcode = require('qrcode-terminal');
//import qrcode from 'qrcode-terminal'
// console.log('\n')
//qrcode.generate('This will be a QRCode, eh!');

// const { marked } = require('marked')
// const { markedTerminal } = require('marked-terminal')

// marked.use(markedTerminal([options][highlightOptions]));

// marked.parse('# Hello \n This is **markdown** printed in the `terminal`');

// const { prompt } = require('enquirer');

// prompt({
//   type: 'input',
//   name: 'username',
//   message: 'What is your username?'
// }).then((response) => {
//   console.log(response);
// })



// var term = require('terminal-kit').terminal;

// term.red('red')
// term.bold.underline.red('mixed')
// term.green("My name is %s, I'm %d.\n", 'Jack', 32)
// term.moveTo(1, 1, 'Upper-left corner')
// term.moveTo.cyan(1, 1, "My name is %s, I'm %d.\n", 'Jack', 32);

// term.magenta("Enter your name: ");
// term.inputField(
//   function (error, input) {
//     term.green("\nYour name is '%s'\n", input);
//   }
// );

// const ora = require('ora')

// const spinner = ora('Loading unicorns').start();

// setTimeout(() => {
//   spinner.color = 'yellow';
//   spinner.text = 'Loading rainbows';
// }, 1000);

// var clear = require('clear');
// clear();

// const table = require('table')

// // Using commonjs?
// // const { table } = require('table');

// const data = [
//   ['0A', '0B', '0C'],
//   ['1A', '1B', '1C'],
//   ['2A', '2B', '2C']
// ];

// console.log('\n' + table.table(data));

//const figlet = require('figlet')

//console.log(figlet.textSync('hello world!'))


// var cowsay = require("cowsay")
// var chalk = require("chalk").constructor({ enabled: true, level: 3 })

// console.log(chalk.magenta.bold(cowsay.say({ text: "hi" })))

// console.log(require('cowsay').say({ text: "hi" }))


// console.log(require('figlet').textSync('hello world!'))

// cowsay.say({ text: "I'm a moooodule", e: "oO", T: "U " })

// console.log(chalk.hex("#F1E").bold(cowsay.say({ text: "hi" })))

// require("fs").readdirSync(process.cwd())

// setTimeout(() => console.log("cowbell"), 0), setImmediate(() => console.log("more"), process.nextTick(() => console.log("needs")))

// var say = s => () => console.log(s)

// setTimeout(say("cowbell"), 0), setImmediate(say("more")), process.nextTick(say("needs"))

// console.log(chalk.magenta('哈哈👋'))

// const cron = require('cron')

// const job = new cron.CronJob(
//   '1 * * * * *', // cronTime
//   function () {
//     console.log('You will see this message every second');
//   }, // onTick
//   null, // onComplete
//   true, // start
//   'America/Los_Angeles' // timeZone
// );

// job.start()

// setInterval(() => {
//   console.log('hahaha')
// },1000)

// require('vm')
// require('util')
// require('url')
// require('dgram')
// require('tty')
// require('timers')
// require('string_decoder')
// require('stream')
// require('repl')
// require('readline')
// require('querystring')
// require('punycode')
// require('process')
// require('perf_hooks') // _hrtime is not a function
// require('path')
 //const os = require('os')
// require('net')
// require('http')
// require('fs')
// require('events')
// require('domain')
// require('dns')
// require('crypto')
// require('cluster')
// require('child_process')
// require('buffer')
// require('assert')
// require('constants')

// require('zlib')
// require('worker_threads')
// require('stream/web')
// require('wasi')
// require('v8')
// require('trace_events')
// require('tls')
// require('test')
// require('https')
// require('http2')
// require('diagnostics_channel')

// const fs = require('fs')

// fs.writeFile('test.txt', 'test', (err) => {
//   if (err) throw err;
//   console.log('The file has been saved!');
// });

debugger
console.log('测试')